package com.earl.ddBook;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.spider.HtmlBean;

/**
 * Created by 知鹏 on 2018/6/21.
 */
public class ProductBrief implements HtmlBean {

    private static final long serialVersionUID = -377053120283382723L;


    @Text
    @HtmlField(cssPath=".name > a")
    private String title;

    @Text
    @HtmlField(cssPath=".price > p > span.price_n")
    private String money;


    @Image({"data-lazy-img", "src"})
    @HtmlField(cssPath=".pic > a > img")
    private String preview;

    @Href
    @HtmlField(cssPath=".name> a")
    private String detailUrl;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPreview() {
        return preview;
    }

    public void setPreview(String preview) {
        this.preview = preview;
    }

    public String getDetailUrl() {
        return detailUrl;
    }

    public void setDetailUrl(String detailUrl) {
        this.detailUrl = detailUrl;
    }


    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }
}
